package com.example.controller;

import com.example.pojo.OaContract;
import com.example.service.IOaContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/contract")
@CrossOrigin
public class OaContractController {
    @Autowired(required = false)
    IOaContractService oaContractService;
    @RequestMapping("search")
    public java.util.List<OaContract> oaContractList(OaContract oaContract){return oaContractService.oaContractList(oaContract);}
    @RequestMapping("insert")
    public int oaContractInsert(OaContract oaContract){return oaContractService.oaContractInsert(oaContract);}
    @RequestMapping("updata")
    public int oaContractUpdata(OaContract oaContract){return oaContractService.oaContractUpdata(oaContract);}
}
